 package com.tank.demo01;

public class Main {

	public static void main(String[] args) throws InterruptedException {
		TankFrame tf = new TankFrame();
		
		int initTankCount = Integer.parseInt(ProperMgr.get("initTankCount")+"") ;
		
		// 初始化5辆坦克
		for (int i = 0; i < initTankCount; i++) {
			tf.tanks.add(new Tank(50+i*80, 200, Dir.DOWN,Group.BAD, tf));
		}
		
		// 循环播放背景音乐
//		new Thread(()->{
//			new Audio("audio/war1.wav").loop();
//		}).start();
		
		while (true) {
			Thread.sleep(50);
			tf.repaint();
		}
	}
}
